<input type="hidden" id="userLogged" value="<?php echo $this->user['name']?>">
			<div class="bar">
				<?php if(!isset($this->user['name'])) :?>
				<div style="float: left; padding-left: 100px; height: 50px;">
					<span style="display: table; vertical-align: center; float: left; padding-right: 10px;">Bem vindo! Visitante. Faça seu <a href="#" id="login" onclick="openPopup(this)">login</a> ou <a class="link" id="client" href="#" onclick="openPopup(this)">cadastre-se&nbsp</a> </span>						
				</div>
				<?php else:?>
				<div style="float: left; padding-left: 100px; height: 50px;">
					<span style="display: table; vertical-align: center; float: left; ">Bem vindo! <b><?php echo $this->user['name'] ?></b></span>						
						<span style="float:left; padding-left: 5px; ">
						<a class="link" id="edit" href="/client/edit">|&nbsp;Meu Cadastro</a>&nbsp;|&nbsp;
						<a class="link" href="/client/requests">Meus Pedidos</a>&nbsp;|&nbsp;
						<a href="#" id="change" onclick="openPopup(this)">Alterar Senha</a>&nbsp;|&nbsp;
						<a class="link" href="/auth/logout">Sair</a></span>				
				</div>
				<?php endif;?>
				
			<!-- <div style="float: right; padding-right: 90px; height: 50px;">
				<div style="width:30px; height:30px; float: left; margin-top: 10px; ">
					<img width="25" alt="" src="/images/call.png">
				</div>
				<div style="float: right; ">
					Telefone para atendimento: (16) 3324-7975
				</div>
			</div> -->
			
			<div class="clear"></div>
			
			</div>
			<div id="header">
			<div id="menu">
				<div id="items">
					<ul class="menu">
					<li><a href="/index" title="Home">Home</a></li>
					<li><a href="/products" title="Produtos">Produtos</a>
					     <ul>
					     	<?php foreach ($this->enterprises as $enterprise):?>
				             	<li>
					             	<a style="cursor: pointer;" onclick="getListProductsPaginated('/products/search-products/title/<?php echo utf8_encode($enterprise['enterprise_name'])?>/','list-products')">
					             		<?php echo utf8_encode($enterprise['enterprise_name'])?>
					             	</a>
						             	<?php if($enterprise['enterprise_id'] != 6):?>
											<ul id="<?php echo $enterprise['enterprise_id']?>">
												<li class="odd">
													<ul>
														<?php foreach ($this->categories as $category):?>
														<li><a style="cursor: pointer;"
														onclick="getListProductsPaginated('/products/search-products/title/<?php echo utf8_encode($enterprise['enterprise_name'])?>/category/<?php echo utf8_encode($category['id_category'])?>/','list-products')"><?php echo utf8_encode($category['desc'])?>
														</a></li> <?php endforeach;?>
													</ul>
												</li>
											</ul> 
										<?php endif;?>
				             	</li>
			             	<?php endforeach;?>
					     </ul>
					</li>
					<li><a id="contato" style="cursor: pointer;" onclick="openPopup(this)">Contato</a></li>
				</ul>
				<form action="/products/search-products" id="filter_form" name="filter_form" style="float: right; margin-right: 50px;">
					Pesquisar: <input type="text" id="search" name="search" value="" class="text" style="height: 20px;">
				</form>
				</div>
			</div>
				<div class="logo" id="logo">
					<a href="/" class="link-logo" style="color: #000; text-decoration: none;">
						<div>
							<label style="font-family: morganHand; font-size: 105px">Mirian</label>
						</div>
						<div style="margin-top: -85px; margin-left: 220px;">
							<label style="font-family: morganHand; font-size: 105px">Martins</label>
						</div>
					</a>
				</div>
			<div style="float: right; padding-right: 90px; padding-top: 30px" id="my_shopping">
				<a id="carrinho" href="#" onclick="openPopup(this)"><img width="60" alt="" src="/images/basket.png"></a>
				<font color="black">
				<?php if($this->shopping_count > 0):
				echo "Minhas compras ".  $this->shopping_count ." Itens"?>
				<?php else:?>
				Nenhum item na cesta 
				<?php endif;?>
				
				</font>
			</div>
			</div>